Here are some numbers of the Java Development Kit Runtime Archive rt.jar
, which is a 60,4 MB big binary file.
First, we fire up the connection to Neo4j that contains all the data scanned by jQAssistant and check the version.
In [1]:
import py2neo
import pandas as pd
graph = py2neo.Graph()
graph.dbms.kernel_version
Out[1]:
I'm using here the following version of the Java SDK:
In [2]:
graph.data("MATCH (m:ManifestEntry {name:'Implementation-Version'}) RETURN m.value as Version LIMIT 25")
Out[2]:
Let's get some numbers!
In [3]:
graph.data("MATCH n RETURN COUNT(n) AS NumberOfAllNodes")
Out[3]:
In [4]:
pd.DataFrame(graph.data("MATCH n RETURN labels(n) AS Labels, COUNT(n) AS LabelCount ORDER BY LabelCount DESC"))
Out[4]:
In [5]:
graph.data("MATCH ()-[r]-() RETURN COUNT(r) AS NumberOfAllRelationships")
Out[5]:
In [6]:
pd.DataFrame(graph.data("MATCH ()-[r]-() RETURN type(r) AS Type, COUNT(r) AS TypeCount ORDER BY TypeCount DESC"))
Out[6]:
In [7]:
graph.data("MATCH n RETURN SUM(SIZE(KEYS(n))) as NumberOfAllProperties")
Out[7]:
In [8]:
pd.DataFrame(graph.data("""
MATCH n WITH KEYS(n) as keys
UNWIND keys as properties
RETURN properties as Property, COUNT(properties) as PropertyCount
ORDER BY PropertyCount DESC"""))
Out[8]: